﻿using System;
using System.Windows.Input;

namespace Theodorus
{
	/// <summary>
	/// Interaction logic for Options.xaml
	/// </summary>
	public partial class Options
	{
		//private readonly Properties.Settings _localSettings;

		public Options()
		{
			InitializeComponent();
		}

		private void ExecuteOk(object sender, ExecutedRoutedEventArgs e)
		{
			Properties.Settings.Default.Save();
			DialogResult = true;
			Close();
		}

		private void ExecuteCancel(object sender, ExecutedRoutedEventArgs e)
		{
			DialogResult = false;
			Close();
		}

		private void WindowClosed(object sender, EventArgs e)
		{
			Properties.Settings.Default.Reload();
		}
	}
}
